package com.zlp.sentinel.feign.impl;

import com.zlp.sentine.stock.feign.StockFeignService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
@Service("stockFeignServiceImpl")
public class StockFeignServiceImpl implements StockFeignService {


    public String reduct(int orderId) {

        int i = 1 / orderId;
        return "扣库存success";
    }
}
